package algorithm3_v3;

import java.util.concurrent.Callable;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Task3 implements Callable<String>{

	static Logger logger= LoggerFactory.getLogger(Task3.class);
	
	@Override
	public String call() throws Exception {
		SystemInfo info = SystemInfo.INSTANCE;
		info.timeout[0]+=1;
		logger.info("Leader zarra"+info.leader.toString());
		info.leader.replace(0, info.leader.length(), info.machineName.toString());
		logger.info("Leader berria"+info.leader.toString());
		info.min_ts[0] = info.p_ts[0];
		return null;
	}

}
